<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<!--<table>
			<tr>
				<td>dfsdf</td>
				<td>dfsdf</td>
				<td>dfsdf</td>
				<td>dfsdf</td>
			</tr>
		</table>-->
		<script type="text/javascript">
	 var table=	document.createElement("table");
var tr;
var td;
var txt;
	for (var i=1;i<=3;i++) {
	tr=document.createElement("tr");
	for (var j=1;j<=3;j++) {
		td=document.createElement("td");
		txt=document.createTextNode("我是文本");
		td.appendChild(txt);
		tr.appendChild(td);
	}
	
	table.appendChild(tr);
	}


	document.body.appendChild(table);
	function inse(){
		var tr1=document.createElement("tr");
		var	td1;
		var	txt1;
		for (var j=1;j<=3;j++) {
		td1=document.createElement("td");
		txt1=document.createTextNode("我是文本");
		td1.appendChild(txt1);
		tr1.appendChild(td1);
	}
		
			table.insertBefore(tr1,tr);
	}
	</script>
	<input type="button" value="增加行" onclick="inse()"/>
	<input type="button" value="改变文本" onclick=""/>
	<input type="button" value="删除行" onclick=""/>
	</body>
</html>
